#ifndef	RE_CHCK_H
#define	RE_CHCK_H

#include "common.h"

#define MAX_PKG_LEN	1042
#define MAX_NUM		10000
#define MIN_NUM		1000
#define MAGIC_NUM	20120210

INT32 recover_jt808msg(INT8 *pDat, INT32 datLen);
INT32 check_crc(UINT8 *prDat, INT32 datLen);
UINT8 count_crc(UINT8 *pDat, INT32 datLen);
INT32 disconnect_judge(INT32 fd, INT32 tm);
INT32 time_convert(UINT8 *pIn, INT8 *pOut);
DWORD create_auth(void);
INT32 simHex_convert_str(UINT8 *pIn, INT8 *pOut);
INT32 simStr_convert_hex(INT8 *pIn, UINT8 *pOut);
INT32 str_to_hex(INT8 *pIn);
INT32 strFloat_to_hex(INT8 *pIn, INT32 num);

#endif /* re_chck.h*/
